<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../vue.js"></script>
  </head>
  <body>
    <div id="app">
        <img src="imgurl" alt=""/>
        <img v-bind:src="imgurl" alt=""/>
        <img :src="imgurl" alt=""/>
        <p data-count="count">看我的属性</p>
        <p v-bind:data-count="count">看我的属性</p>
        <p :data-count="count">看我的属性</p>

        <!-- 如果v-bind内部需要拼接可以使用以下两种方式 -->
        <img :src="publicUrl+'logo.svg'" alt="">
        <img :src="`${publicUrl}logo.svg`" alt="">
    </div>
 
    <script>
      Vue.config.productionTip = false;

      const vm = new Vue({
        el: "#app",
        data() {
          return{
            imgurl: "https://v2.cn.vuejs.org/images/logo.svg",
            publicUrl:"https://v2.cn.vuejs.org/images/",
          count: 0,
        };
      },
    });
    </script>
  </body>
</html>

